# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils qt4

DESCRIPTION="QChat is a crossplatform LAN chat."
HOMEPAGE="http://www.kde-apps.org/content/show.php/QChat?content=65066"
SRC_URI="mirror://sourceforge/q-chat/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""

DEPEND="$(qt4_min_version 4.3)"

RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch "${FILESDIR}"/${P}-fix-compile-of-chatcore_settings.patch
}

src_compile() {
	eqmake4 src.pro
	emake || die "emake failed"
}

src_install() {
	dodoc COPYING README
        emake INSTALL_ROOT="${D}" install || die "emake install failed"
}
